<?php

// +----------------------------------------------------------------------
// | Copyright (c) 2020 All rights reserved.
// +----------------------------------------------------------------------
// | User: Simony <1362229026@qq.com>
// | wechat: Shen86579595
// +----------------------------------------------------------------------
namespace app\admin\validate;
use think\Validate;

class Task extends Validate
{
    protected $rule = [
        'type' => 'require|number',
        'year' => 'require|number',
        'month' => 'require|number',
        'day' => 'require|number',
        'hour' => 'require|number',
        'minute' => 'require|number',
        'begin_time' => 'require|number',
        'end_time' => 'require|number',
    ];
    protected $message = [
        'name.require' => '任务名称必须',
        'class_name.require' => '类名必须',
        'function_name.require' => '方法名必须',
    ];
}